$(window).load(function(){
	$(".trdetail_btselect").click(function(event){
		event.stopImmediatePropagation();
		var o =($(this).attr('id')).split('_');
		var url = "/default/training/selected/userid/"+o[2]+"/trainingid/"+o[1];
		var id = ($(this).attr('id'));
		$.ajax({
			type:"GET",
			url:url,
			success:function(data){
				$(".trdetail_btselect").css("display","none");
				l = $('<label></label>');
				l.addClass(".trdetail_label");
				l.append('selectionner');
				l.insertAfter($("#"+id));
			}
		});
	});
	$(".backbutton").click(function(e) {
		parent.history.back()
		return false;
	});
});